<!DOCTYPE html>
<html>
  <head>
    <title>确定协议—服务包详细</title>
	<div th:include="base-libs :: base-libs" />
    <meta name="keywords" content="keyword1,keyword2,keyword3">
    <meta name="description" content="this is my page">
    <meta name="content-type" content="text/html; charset=UTF-8">
    
    <script th:inline="javascript">
    	var fwxAry = [[${fwxAry}]];
    </script>
	<script>
		$(function(){
			initView();
			initData();
		})
		
		function initView(){
			$("#fwbxxTable").datagrid({
				idField : "FWID",
				striped : true,
				border:false,
				clickToSelect: true,
				columns : [[
					{field : "FWID",width: 150,align: "center",title : "服务项编号"},
					{field : "FWMC",width: 150,align: "center",title : "服务项名称"},
					{field : "FWNR",width: 150,align: "center",title : "服务内容"},
					{field : "FWLBMC",width: 100,align: "center",title : "服务类别"}
				]]
				,fit: true
				,fitColumns: true
				,singleSelect: false
				,rownumbers: true,
				onLoadSuccess:function(data){
//	 				alert(JSON.stringify(data))
				}
			});
		}
		
		function initData(){
			if(fwxAry){
      			$("#fwbxxTable").datagrid("loadData", {"total": fwxAry.length, "rows": fwxAry})
			}
		}
	</script>
  </head>
  
  <body class="easyui-layout" border="false" fit="true">
    <div region="center" border="false">
    	<table id="fwbxxTable"></table>
    </div>
  </body>
</html>
